<?php
/**
 * Created by PhpStorm.
 * User: mf
 * Date: 2017/9/12
 * Time: 18:10
 */
namespace app\admin\validate;

class Order extends Base
{
    //生成预订单
    public static function createPreOrder()
    {
        return [
            'rule' => [
                'sellerID' => 'require',
                'productID' => 'require',
                'number' => 'require|number',
                'price' => 'require',
                'totalPrice' => 'require',
            ],
            'msg' => [
                'sellerID.require' => '请选择商家',
                'productID.require' => '请选择产品',
                'number.require' => '请选择商品数量',
                'number.number' => '商品数量为整数',
                'price.require' => '产品价格不能为空',
                'totalPrice.require' => '产品总价不能为空'
            ]
        ];
    }
}